Adds logic for drawing the game.