You have a timer to get as big of a score as you can the timer is 30 to restart you have to press the green flag, to catch the donut you have to click on it.
Notes & Credits
Credits to me and Max Wainewright for making a book that teaches you coding.