         displayResultAnimation = false;
         creatingSequence = true;
         listeningToButtons = true;
-        seqIndex = 0;
       }
       timeLEDlastChanged = millis();
-      Serial.println("Off");
     }
 
     //if the last LED was off and it's time to turn the next one on

        displayingSequence = false;
        repeatingSequence = true;
        listeningToButtons = true;
        seqIndex = 0;
      }
      timeLEDlastChanged = millis();

      for (int i = 0; i < seqLength; i ++)
          btnLog[i] = -1;
      btnLogIndex = 0;
      LEDon = false;
      animationIndex = -1;
    }
    
  }

  else if(displayResultAnimation)
  {
    //only set indices the first time
    if (animationIndex == -1)
    {
      if (playerWasCorrect)
      {
        animationIndex = 0;
        endI = 11;
      }
      else {
        animationIndex = 12;
        endI = 18;
      }
    }
    //if an LED has been on and it's time to turn it off
    if(LEDon && (millis() - timeLEDlastChanged >= animationLEDonDuration))
    {
