 
 int nobodyGotIt = 999;
 int steps[8] = {8,4,2,1,5,3,7,6};
+int stepNumber;
+boolean finished = false;
 
 void setup() {
 

  for(int i = 0 ; i < sizeof(LEDS) ; i++){
    pinMode(LEDS[i], OUTPUT);
  }

}


void loop() {

  uint8_t whoGotTheP = getPressedButtonID();
  letTheLEDWakeUp(whoGotTheP);
  
}


      return i;
    }
  }
  return nobodyGotIt;

}

void letTheLEDWakeUp(int pint){

  if(LEDS[pint] == steps[stepNumber]){

    digitalWrite(LEDS[stepNumber], 0);
    if(stepNumber == sizeof(steps)){
      finished = true
      
    }else{
      stepNumber++;
      digitalWrite(LEDS[stepNumber], 1);
      
    }
    
    
  }else{
    
    digitalWrite(LEDS[stepNumber], 0);
    delay(250);
    digitalWrite(LEDS[stepNumber], 1);
    delay(250);
    digitalWrite(LEDS[stepNumber], 0);
    delay(250);
    digitalWrite(LEDS[stepNumber], 1);
    delay(100);
  }

}

void learnFinishedAnimation(){
  for(int i = 0 ; i < (sizeof(LEDS) - 1) ; i++){
    digitalWrite(LEDS[i], 1);
    delay(200);
    digitalWrite(LEDS[i], 0);
  }
}



