We just had this in another thread: Help again y and z homing issues - #2 by Tokoloshe
Make sure you didn’t swap one Y/Z endstop. Do what Ryan told you and trigger the endstops by hand and see whether the correct light toggles. I bet that one of your Z stops on the board will trigger when pressing an Y endstop physically and vice versa.