Troubleshoot

I have been moving all endstop plugs around on the board, X to Z1. Z1 to Y2. Y2 to Z2, many combinations with power off, led illumination stays the same when power back on. manually triggered switches illuminated correct leds. Endstop and plug problem is eliminated I believe it is a board/firmware problem but not sure what to do now.