The slider does what it says. space bar restarts the program. (Don't press it while anything is moving.)
I got the idea and a lot of help from my dad, but it was mostly coded by me.