I think you have a hardware fault..
each endstop is connected to their own IO line... one cannot effect the others unless there is a short...
each endstop is connected to their own IO line... one cannot effect the others unless there is a short...