Look at the red and blue lines on your solderless breadboard.
Notice that there is a gap in each of the lines at the center of the board.
This means that there is also a gap in the corresponding bus bars.
Jumper the gaps and try your program again.
Don