 
   while (!exit_settings_menu) {
     if (arduboy.pressed(DOWN_BUTTON)) {
-      if ( (millis() - lastDebounceTime) > debounceDelay) {
+      if ( (millis() - lastDebounceTime) > DEBOUNCE_DELAY) {
         selectedItem = settingMenuDownButton(selectedItem);
         lastDebounceTime = millis(); //set the current time
       }
     }
 
     if (arduboy.pressed(UP_BUTTON)) {
-      if ( (millis() - lastDebounceTime) > debounceDelay) {
+      if ( (millis() - lastDebounceTime) > DEBOUNCE_DELAY) {
         selectedItem = settingMenuUpButton(selectedItem);
         lastDebounceTime = millis(); //set the current time
       }
     }
 
     if (arduboy.pressed(A_BUTTON)) {
-      if ( (millis() - lastDebounceTime) > debounceDelay) {
+      if ( (millis() - lastDebounceTime) > DEBOUNCE_DELAY) {
         switch (selectedItem) {
 
           case SETTINGS_EXIT:

    }

    if (arduboy.pressed(LEFT_BUTTON)) {
      if ( (millis() - lastDebounceTime) > debounceDelay) {
        selectedItem = titleMenuLeftButton(selectedItem);
        lastDebounceTime = millis(); //set the current time
      }
    }

    if (arduboy.pressed(RIGHT_BUTTON)) {
      if ( (millis() - lastDebounceTime) > debounceDelay) {
        selectedItem = titleMenuRightButton(selectedItem);
        lastDebounceTime = millis(); //set the current time
      }

#include "MusicPlayer.h"
#include "star.h"

#define DEBOUNCE_DELAY 100

// TODO highScore should be replaced with table in EEPROM
unsigned int score, highScore = 0;
byte livesRemaining = 4;
