     //Serial.println(pos_led);
 
     
-    for (int i = NUM_LEDS; i >=0; i--){
+    for (int i = NUM_LEDS-1; i >=0; i--){
       if (i<=pos_led){
         if (i<=5){leds[i]=CRGB::Red;}
         else if (i>5 && i<=15){leds[i]=CRGB::Orange;}

  if (pattern=="game_over"){
    digitalWrite(MOSFET_GATE,HIGH);
    FastLED.setBrightness(LOW_BRIGHTNESS); 
    for (int i = NUM_LEDS; i >=0; i--){
      leds[i]=CRGB::Red;
    }
  }
  
  if (pattern=="off"){
    for (int i = NUM_LEDS; i >=0; i--) {
      //leds[i]=CRGB::Black;
      leds[i].nscale8(230);
    }

}
  
void alloff() {
  for (int i = NUM_LEDS-1; i >=0; i--) {
    leds[i]=CRGB::Black;
    delay(10);
    FastLED.show();
