game logic is now controlled with a state machine

Currently the game can switch between three states, one state (game_over) is currently a stub