   state = stateNewLevel;
   
   randomSeed(analogRead(A5));
+  
+  //initial set
+  for (int i = 0 ; i < level; i++) {
+    sequence[i] = redButton;
+  }
   
 }
 

         displayWrite("sbagliato");
         state = stateEnd;
       }
      delay(1000);
      noTone(tonePin);
      allLedOff();
    
}

boolean pressed(int button) {

}

void checkPressing(int led, unsigned int note, int button) {
        digitalWrite(led, HIGH);
         tone(tonePin, note);
       
       if (sequence[currentPlayingSeqIndex] == button) {
        
         displayWrite("OK !");
         currentPlayingSeqIndex ++;
         if (currentPlayingSeqIndex >= level) {
