Implemented the game class and how it interacts with states and also added basic controls.