     }  
     win = isSame(result, winConditions[i]); 
   }
-  return win;
-  
-}
-
-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();
-  }
+  return win;  
+}
+
+void checkColor(int s){
+  int colorValue = squares[s]->getColorValue();
+  Serial.println(colorValue);
 }
 
 void victoryLoop(char color){


void setup() {  
  Serial.begin(9600);
  for (int i = 0; i < 9; i++){
    squares[i] = new Square(8 - i, i + 1, &_sd);
  }

  Serial.println();
}




