Moved out game logic to separate class from controller