 #include <arduino.h>
+#include <Wire.h>
+
+#define SLAVE_ADDRESS 0x04
 
 #define NUM_TEAMS 3
 #define PLAYERS_PER_TEAM 4

    ;
    
  Serial.println("----------- GO! -------------");

  int winning_team = -1;
  int winning_player = -1;

  while (winning_team == -1) {    
    for (int team=0; team < NUM_TEAMS && winning_team == -1; team++) {

  
  // Use analog 0 pullup-resistor for faster resets.
  digitalWrite(A0, HIGH);
  
     
  // I2C config ...
  Wire.begin(SLAVE_ADDRESS);
  Wire.onReceive(receive_data);
  Wire.onRequest(send_data);

}

void receive_data(int byte_count) {
    while(Wire.available()) {
      number = Wire.read();
      Serial.print("data received: ");
      Serial.println(number);
    }
}

void send_data() {
  Wire.write(winning_team);
  Wire.write(winning_player);
}

void loop() {
