adding code to play the game