cleaned up the interface between the ui and the game logic