I cant get the program to loop

Show us a good schematic of your circuit.

Show us a good image of your ‘actual’ wiring.