int leds [] = {13, 12, 11, 10, 9};
int currentState [] = {HIGH,LOW,LOW,LOW,LOW};
int currentHighLed = 0;
void setup() {
  // put your setup code here, to run once:
  for ( int i = 0; i < sizeof(leds)/ sizeof(int); i++) {
    pinMode(leds[i], OUTPUT);
  }
}

void loop() {
  // put your main code here, to run repeatedly:
  for ( int i = 0; i < sizeof(leds)/ sizeof(int); i++) {
digitalWrite(leds[i], currentState[i]);
}
//currentState [currentHighLed] = LOW;
currentHighLed = currentHighLed + 1;
if (currentHighLed >= 5) {
  currentHighLed = 0;
}
currentState [currentHighLed] = HIGH;
delay (1000);
}