 {
   if ((millis()/interval) > numberOfChangedSteps) {
     setNewValues();
+  }
+
+  if (/*TODO: sensor value*/ > ignoredDistance) {
+    intervenedPlayer = getIntervenedPlayerNumber(/*TODO: sensor value*/sensorDistance);
+    calculateResult();
   }
   
   lcd.setCursor(5, 2);


const int contrast = 15; // display contrast
const int player = 2; // number of players
const int space = 10; // space between the players / between player one and the sensor
const int interval = 1000; // interval between display changes in milliseconds

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

  }

  numberOfChangedSteps++;
  // Serial.println(numberOfChangedSteps);
}

void calculateResult()
