Implemented Zach's idea correctly

Now it will only stop when the button is pressed three times in a row.