   arduboy.display();
   while (totalDelay < 4000) {
     unsigned long currentMilliseconds = millis();
-    if (arduboy.pressed(UP_BUTTON) || arduboy.pressed(DOWN_BUTTON) || arduboy.pressed(LEFT_BUTTON) || arduboy.pressed(RIGHT_BUTTON) || arduboy.pressed(A_BUTTON)  || arduboy.pressed(B_BUTTON)) {
+    
+    if (arduboy.buttonsState() > 0) {
 
       if ((currentMilliseconds - lastDebounceTime) > DEBOUNCE_DELAY) {
         totalDelay = 4000;

            soundOn = !soundOn;
            printsoundOnOff();
            break;
            
          case SETTINGS_RESET_HIGH_SCORE:
            exit_settings_menu = true;
            break;

          default: break;
        }
      }
      lastDebounceTime = currentMilliseconds; //set the current time
    }
  }
}



    if (!isBossAlive) {
      boolean spawnedBoss = false;
      
      if ((score >= 500) && (!spawnedBossOne)) {
        boss.set(129, 10, 1);
        spawnedBossOne = true;
        spawnedBoss = true;
      } else if ((score >= 12000) && (!spawnedBossTwo)) {
        boss.set(129, 24, 2);
        spawnedBossTwo = true;
        spawnedBoss = true;
      }
