       /// If no button is pressed reset the doonce                       ///
       //////////////////////////////////////////////////////////////////////
       if (exists == numOfButtons && doonce == true){
-         doonce = false;
-          delay(50);
+          doonce = false;
+           delay(50);
         }
 }/*----(Function pressButton END)----*/
 
 // Functions "Reset"
 void reset() {
-  for (int inputIndex = 0; inputIndex < numOfCombos; inputIndex++) {   //You could aparently declare an int in a for loop... C++ Style?
+  for (short int inputIndex = 0; inputIndex < numOfCombos; inputIndex++) {
     input[inputIndex] = 0;   //Zeros the input array
   }
 

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


  // Debug
  debug();
  // Debug

    //If timer has run out, reset all arrays the count variable
    if(count != 0 && millis() - time > del) {   //Resets if timer runs out
      reset();   //Runs the Reset function
    }

int value = 0;   //how many combos are correct
for(int a = 0; a < numOfCombos; a++){
    if(input[a] == combination[a]){   //Checks if the input and the combo are the same
     value++;   //Adds one if combo is correct
    }


// Which number I have input
if (count < numOfCombos) { // Restricts the variable to not go over 4
  //Start of Combo,('(Badger and Skinny Pete)')
  for(int a = 0; a < numOfButtons; a++){
    pressButton(a, buttonsRead[a]);   //Runs the function pressButton
