 //int gameStatus = 0; //0 = ongoing game, 1 = you win, 2 = opponent wins
 //int currentTurn = 0; //0 you, 1 opponent
 
+int redStatus [] = {0,0,0,0,0,0,0,0,0};
+int greenStatus [] = {0,0,0,0,0,0,0,0,0};
+
+int winConditions [][9] = {{1,1,1,0,0,0,0,0,0},
+                              {0,0,0,1,1,1,0,0,0},
+                              {0,0,0,0,0,0,1,1,1},
+                              {1,0,0,1,0,0,1,0,0},
+                              {0,1,0,0,1,0,0,1,0},
+                              {0,0,1,0,0,1,0,0,1},
+                              {1,0,0,0,1,0,0,0,1},
+                              {0,0,1,0,1,0,1,0,0}
+};
+
+boolean redVictory = false;
+boolean greenVictory = false;
+
 void setup() {  
   Serial.begin(9600);
   for (int i = 0; i < 9; i++){

  clearSquares();
  allGreen();
  delay(1000);
  clearSquares();  
}

// the loop routine runs over and over again forever:
void loop() {
  adjustColors();
  Serial.println(squares[7]->getColorValue());  
}

//The calibration changes from sensor to sensor
void calibrateSensors(){

  }
}

void printStatus(){
  Serial.println("Red");
  for (int i=0; i < 9; i++){
    Serial.println(redStatus[i]);
  }
  Serial.println();
  
  Serial.println("Green");
  for (int i=0; i < 9; i++){
    Serial.println(greenStatus[i]);
  }
  Serial.println();
}


