add the game logic if/else statments to the controller