     for (int i = 0; i < QTY; i++) {
         pinMode(LEDS[i], OUTPUT);
     }
+
+    // Set tilt switch to input mode.
+    pinMode(TILT, INPUT);
 }
 
 

        Serial.print(analogRead(BUTTONS));
        Serial.print(", ");
        Serial.println(simonLed);
    }

    // Cycle LEDs until the player starts a game.
    while (!gameStart) {
        playLightShow();
    }
}


 */
void loop() {

    // Cycle LEDs until the player starts a game while checking for game start.
    while (!gameStart) {
        playLightShow();  // The tilt switch starts a new game.
    }

    // Begin the game.
    // Check if a button switch was pressed.
    int simonLed = getSimonLed(analogRead(BUTTONS));
    if (DEBUG) {
