 
 
 
-//expect morse code to start with . or - and sequences are in the form 12031021, BOTH END WITH |
+
+//expect morse code to start with . or - and sequences are in the form 12031021, BOTH END WITH ~
 void serialEvent()
 {
   while (Serial.available())

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

  if(displayResultAnimation)
  {
    if (animationIndex == -1)
    {
      //can't use delays or they will interfere with morse code output
      if (playerWasCorrect)
      {
        animationIndex = 0;
        endI = 11;
        Serial.println("player was correct");
      }
      else {
        animationIndex = 12;
        endI = 18;
        Serial.println("player was wrong");
      }
    }

    Serial.print(LEDon);
    Serial.print("   ");
    Serial.print(millis());
    Serial.print("   ");
    Serial.print(timeLEDlastChanged);
    Serial.print("   ");
    Serial.print(animationIndex);
    Serial.print("   ");
    Serial.println(animationArr[animationIndex]);
    
    

    //if an LED has been on and it's time to turn it off
    if(LEDon && (millis() - timeLEDlastChanged >= animationLEDonDuration))
    {

    
  }
  
  else if(repeatingSequence)
  {
    //see if the user is done pressing buttons
    if(btnLogIndex == seqLength)
