     int randLed = random(0, 3);
     digitalWrite(ledPin[randLed], HIGH);
 
-
     // to distinguish the notes, set a minimum time between them.
     // the note's duration + 30% seems to work well:
     int pauseBetweenNotes = noteDuration * 1.30;

 #include "pitches.h"


const int NUM_LEDS = 3;
const int speakerPin = 10;

int buttonPin[] = {3, 2, 4};
int ledPin[] = {13, 8, 9};
int tones[] = {NOTE_C4, NOTE_A4, NOTE_G3};

int buttonState[] = {HIGH, HIGH, HIGH};
int lastButtonState[] = {LOW, LOW, LOW};
boolean buttonOn[] = {false, false};

int sequence[] = {0, 1, 0, 2, 2, 1, 0};
int max_level = 7;
int level = 1;


  }
}

void loop(){

  boolean wrong = false;
  level = 1;

  generateSequence();

  // play until win or loose
  while (!wrong && level <= max_level) {
    playSequence(level);
    wrong = inputFromUser(level);
