trying to add a pushbutton to my circuit please help me

  buttonPushCounter = 0;
  break; 
  }

} // <<<<    this curly bracket is missing

  void registerWrite(int PIN, bool BOOL) {

You are missing the curly bracket to close the loop() function. Insert a curly bracket where I have indicated.

In the future, please include the full text of the error message (in code tags). There is information in the message that may make the error easier to fix.