 boolean finished = false; //game is finished
 boolean isRedOn = 0;
 boolean isGreenOn = 0;
+int intervenedPlayer = 0;
 
 void setup() 
 {

    }
  }

  // 
  if (isRedOn == false &&
      isGreenOn == true &&
      (numberOfAs == 3 ||


const int contrast = 15; // display contrast
const int player = 2; // number of players
const int space = 1000; // space between the players / between player one and the sensor (in millimeters)
const int interval = 1000; // interval between display changes in milliseconds
const int ignoredDistance = 1000; // the sensor ignores everything above this distance (in millimeters)

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
