     displayString[i*2] = randomValue;
   }
   
-  int isRedOn = random(0, 2);
-  int isGreenOn = random(0, 2);
+  isRedOn = random(0, 2);
+  isGreenOn = random(0, 2);
   
-  if(isRedOn == 1) {
+  if(isRedOn) {
     digitalWrite(8,HIGH);
   } else {
     digitalWrite(8,LOW);
   }
   
-  if(isGreenOn == 1) {
+  if(isGreenOn) {
     digitalWrite(7,HIGH);
   } else {    
     digitalWrite(7,LOW);

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

char displayString[] = "x x x x x"; // = "x x x x x" as start value
int numberOfChangedSteps = 0;
boolean finished = false; //game is finished
boolean isRedOn = 0;
boolean isGreenOn = 0;

void setup() 
{
