 /*----(Function setup)----*/
 void setup() {
     //Used to be able to add as many buttons as you want
-    for(int setb = 0; setb < numOfButtons; setb++){
+    for(short int setb = 0; setb < numOfButtons; setb++){
       pinMode(buttons[setb], INPUT); // sets All Input pin
      }
 

      /// If no button is pressed reset the doonce                       ///
      //////////////////////////////////////////////////////////////////////
      if (exists == numOfButtons && doonce == true){
         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?
    input[inputIndex] = 0;   //Zeros the input array
  }


     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++;
        }
