  int led[] = {led0, led1, led2, led3};
 
  String recString = "";
- boolean newAvail = false;
+ boolean arduinoTurn = false;
  String recMessage = "";
+ boolean LEDon = false;
+ int seqIndex;
+ unsigned long timeOfLastChange;
+ int seqArr[100];
+ int seqSize;
+ boolean playerCreating = false;
+ boolean prevBtns[] = {false, false, false, false};
+ 
 
 void setup() {
+ timeOfLastChange = millis();
  Serial.begin(9600);
  pinMode(btn0, INPUT);
  pinMode(btn1, INPUT);

 pinMode(led2, OUTPUT);
 pinMode(led3, OUTPUT);
 recString.reserve(200);
 Serial.println("-----Start-----");
 
}

void loop() {
  // put your main code here, to run repeatedly:
  for (int i = 0; i < 4; i ++) {
    if (digitalRead(btn[i]) == 1) {
      digitalWrite(led[i], HIGH);
      //Serial.print("LED ");
      //Serial.print(i);
      //Serial.print(" on    ");
    }
    else {
      digitalWrite(led[i], LOW);
      //Serial.print("LED ");
      //Serial.print(i);
      //Serial.print(" off    ");
    }
      
  }
  if (newAvail) {
    //DO SOMETHING
    recString = "";
    newAvail = false;
    
  }
  /*
  Serial.println(" ");

        {
        }
        */
        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 = "";
    }
  }
}
