Need help for a timer projet

I for one would spend more time on this kind of code if you

  • named the pins the buttons are on and used those names

  • described what each button is supposed to do if the names weren't clear enough

  • used better names than button3WasUp


What's the roll of button3, here in a section where MIN must be > 0?

   if (button3WasUp && !button3IsUp && MIN > 0) {
      delay(10);
      button3IsUp = digitalRead(6);
      if (!button3IsUp) {
         if (SEC == 0) { SEC = 60; MIN = MIN - 1; }
         if (MIN < 0 ) { MIN = 0; }
         digitalWrite(10, LOW);
         w = 1;
      }
   }
   button3WasUp = button3IsUp;

a7