Refactored the game board controller.