     if(decaseconds_left%10==0){
       writeDigits(decaseconds_left/10);
     }
+    if(decaseconds_left == 0){
+      endFunction();
+    }
   }
   
   if(millis()-prevUpdateTime >= UPDATE_TIME){

  }
}


  }
  for(uint8_t i_led= min(current_led+1,NUM_LEDS-1); i_led < NUM_LEDS; ++i_led){
    // these are white
    walker_leds[i_led] = CRGB(32,32,32);
  }
  // Now, the current led's colour
  switch(current_colour){
    case 0: //blue has left
      walker_leds[current_led] = CRGB::Yellow / 10;
    break;
    case 1: //green has also left
      walker_leds[current_led] = CRGB::Red / 10;
    break;
    break;
    // TODO: default case?
