Improve readability of code
Switch to event handling for quitting
Split eventloop into input/update/render
Move quit into a demostate struct
Render spasmic line