set up simple game loop and began work on the game state machine.