set up front-end to game screen flow state. dynamically construct html for these states. Modularize main menu and new game. Move game init in to mainloop class.