restructure and framework for start/end screen

rewrote main loop to follow state machine structure. put in a framework
and placeholders for the start screen and game over screen