Used one of these loops for our entry in the 20 Second Game Jam, thanks so much!
https://sawd-games.itch.io/twenty-seconds-to-daytona