 /*----(Function loop)----*/
 void loop() {
     //Gets the Button States
-for(short int state = 0; state < numOfButtons; state++){
+for(int state = 0; state < numOfButtons; state++){
   buttonsRead[state] = digitalRead(buttons[state]); // First Switch
 }
 

//////////////////////////////////////////////////////

//Function pressButton, If user presses a Button
void pressButton(short int num, short int digRead){
  if (digRead == 1 && doonce != true) { // If I hit a Button
   time = millis();   //Starts the 10 second timer
    input[count] = num + 1; // sends the number 1 into the array at the "count number"
     count++; // Where to put 4 into the array
      doonce = true;
    }
    short int exists;

      for(short int a = 0; a < numOfButtons; a++){
        if(buttonsRead[a] == 0){
          exists++;
        }

   Serial.print(count);
    Serial.print(", |");

     for(int a = 0; a < numOfCombos; a++){
      Serial.print(input[a]);   //Prints which number has been pressed
    }
  Serial.println();
