 int buttonState[] = {0,0,0,0};
 unsigned long debounceTime = 50;
 
-int seqIndex;
-int seqSize;
-
-
+int seqIndex = 0;
+int seqLength = 0;
+String recString = "";
+//since dynamic arrays are not advised in Arduino, it is unlikely the user will get past 50
+int seqArr[50];
+int btnLog[50];
+int btnLogIndex = 0;
+
+
+
+//Status trackers
 boolean displayingSequence = false;
 boolean repeatingSequence = false;
+boolean displayResultAnimation = false;
 boolean creatingSequence = false;
+boolean listeningToButtons = false;
+boolean playerWasCorrect = true;
+
+//customizable display, just set indexes appropriately in displayResultAnimation
+int animationArr[] = {0,1,2,3,0,1,2,3,0,1,2,3,0,-1,0,-1,0,-1,0};
+int animationIndex = -1;
+int endI;
+const int animationLEDonDuration = 300;
+const int animationLEDoffDuration = 100;
+
+//for tweaking how sequence it output to user
+const int LEDonDuration = 1000;
+const int LEDoffDuration = 500;
+unsigned long timeLEDlastChanged = 0;
+boolean LEDon = false;
 
 
 /*
- String recString = "";
+ 
  boolean arduinoTurn = false;
  String recMessage = "";
  boolean LEDon = false;

    if (inChar == '|')
    {
      int endIndex = recString.indexOf("|");
      /*
      if (endIndex == -1)
      {  
        endIndex = recString.indexOf("/n");
      }
      */
      
      //PROCESS MESSAGE
      if (recString.charAt(0) == '.' || recString.charAt(0) == '-' {
        recMessage= recString.substring(2, endIndex);
        Serial.print("Received Message:");
        Serial.println(recMessage);
        
      //PROCESS SEQUENCE  
      }
      if (recString.charAt(0) == 's') {
        seqSize = (recString.length()-1)/2;
        /*
        int* seq = new int[(recString.length()-1)/2];
        Serial.println(sizeof(*seq));
        for (int i = 2; i < recString.length(); i++)
        {
        }
        */
        /*
        for (int i = 2; i <= (seqSize*2); i += 2)
        {
          seqArr[i/2 -1] = recString.charAt(i) - '0';
        }
        /*
        Verify that you can actually create arrays of variable size
        Serial.print("Created array size: ");
        Serial.println(sizeof(seqArr) / sizeof(int));
        
        //Test Sequence Array
        for (int i = 0; i < digits; i ++)
        {
          Serial.println(seqArr[i]);  
        }
        */
        /*
        seqIndex = 0;
        LEDon = false;
        for (int i = 0; i < 4; i ++)
          prevBtns[i] = false;
        arduinoTurn = true;
      }
      
      
      //Output sequence to user
      

      
      recString = "";
    }
  }
}

  Serial.println(" ");
  */


/*
void serialEvent()
