Need help getting a program to loop

get rid of the while(1) and just change the end of the code to read

else {
    FastLED.show();    // if the letter is beyond the bounds of the message, we just turn off all the leds
    delay(1000); // wait a bit
    received = millis(); // this way we start again from start as this will reset index
  }