       //Check each button for change
       for (int i = 0; i < 4; i ++)
       {
+        'if the button wasn't pressed previously and is now
         if (!prevBtns[i] && digitalRead(btn[i]))
         {
           prevBtns[i] = true;
           delay(150);
         }
-        else if(prevBtns[i] && (digitalRead(btn[i]) == false))
+        else if(prevBtns[i] && !digitalRead(btn[i]))
         {
           prevBtns[i] = false;
           repeatArr[seqIndex] = i;
           seqIndex += 1;
-          //Check user for correctness
+          //Check user for correctness once the entire sequence has been entered
           if (seqIndex == seqSize)
           {
             boolean correct = true;

     
     
    //If sequence index is less than the length, we are still outputting the sequence
    if((seqIndex < seqSize) && playerRepeating == false && playerCreating == false){
      //If an LED was on and change must be made
      if (LEDon && (millis() - timeOfLastChange >= 1000))
      {

 pinMode(led2, OUTPUT);
 pinMode(led3, OUTPUT);
 recString.reserve(200);
 seqIndex = 0;
}

void loop() {

  if (playerCreating || playerRepeating)
  {
    'if button is pressed, turn on LED
    for (int i = 0; i < 4; i ++) {
      if (digitalRead(btn[i]) == 1) {
        digitalWrite(led[i], HIGH);
      }
      else {
        digitalWrite(led[i], LOW);
      }    
    }
  }
