My wires are not all the same colors as yours but I have a picture of them connected.
I am not sure if you have the same board but I have a picture of the connectors at the board if this will help. The picture is good quality so you should be a ble to zoom in and see the writing clearly on the board. I had a bad Y axis limit switch and this picture is left from replacing that on my SX3. Hope this helps.