Worked on game loop and game state manager stuff