Switch State Issues?

It should start running ONLY when the reed switch gets activated.

The program starts running when the board is powered up or the reset button hit. So there might be the first mistake.

Post a wiring diagram of your setup! Post links to all hardware used which is not an official Arduino board.