I have a project for my engineering class in which I need to make a program where an light will travel in a circlular pattern across LEDs continously but once the user presses a button, the game will stop and "win" or "lose" will be printed on the Serial Monitor. Currently, the program works but there is a delay between when the button is pushed and when the game stops, like the button has to be held for a second before the game will stop, I cannot figure out how to get rid of the delay, any ideas? I've attatched my code below.
definately_going_to_work_FINAL.ino (9.73 KB)