 
 // the loop routine runs over and over again forever:
 void loop() {
+  delay(50);
   if (!redVictory && !greenVictory){
     updateColorStatus();
   }

  }
}

void restartGame(){
  allClear();
  allGreen();
  delay(200);
  allRed();
  delay(200);
  allGreen();
  delay(600);
  allClear();
  
  redStatus [] = {0,0,0,0,0,0,0,0,0};
  greenStatus [] = {0,0,0,0,0,0,0,0,0};
  redVictory = false;
  greenVictory = false;
}


//The calibration changes from sensor to sensor
void calibrateSensors(){
  squares[0]->calibrateCNY70(460, 400, 360, 280);
  squares[1]->calibrateCNY70(240, 150, 145, 60);
  squares[2]->calibrateCNY70(290, 200, 150, 60);
  squares[3]->calibrateCNY70(420, 370, 260, 200);
  squares[4]->calibrateCNY70(260, 210, 160, 90);
  squares[5]->calibrateCNY70(380, 320, 230, 170);
  squares[6]->calibrateCNY70(350, 300, 230, 170);
  squares[7]->calibrateCNY70(480, 430, 380, 300);
  squares[8]->calibrateCNY70(340, 290, 230, 170);  
}

void updateColorStatus(){
