Moved game loop to Controller class; handled game state