space to reset drawing, r to reset positions of vertices. Use turbo mode if you're impatient.
All code by me.