Start/Stop program by pushing a button

The level of button1 never changes in that code. It needs a button1 = digitalRead(button1Pin); somewhere, like at the top of loop().