   greenVictory = false;
 }
 
+/**********************************************
+ *   COLOR CONTROL METHODS
+ **********************************************/
+
+void clearSquares(){
+  for (int i=0; i < 9; i++){
+    squares[i]->clear();
+  }
+}
+
+void allRed(){
+  for (int i=0; i < 9; i++){
+    squares[i]->setRed();
+  }
+}
+
+void allGreen(){
+  for (int i=0; i < 9; i++){
+    squares[i]->setGreen();
+  }
+}
+
+
 void printStatus(){
   Serial.println("Red");
   for (int i=0; i < 9; i++){

  squares[7]->calibrateCNY70(480, 430, 380, 300);
  squares[8]->calibrateCNY70(340, 290, 230, 170);  
}

void updateColorStatus(){
  for (int i=0; i < 9; i++){

  clearSquares();
  allGreen();
  delay(1000);
  clearSquares();
  // Initialize the baseboard peripherals 
  initializeHardwarePeripherals();
  // Show the welcome message
  doWelcome();  
  // Find other player
  rival_id = findPlayer(player_id);
}

// the loop routine runs over and over again forever:
void loop() {
  delay(200);

  
  /*
  if (!redVictory && !greenVictory){
    updateColorStatus();
  }
