added a do/while loop to make the game playable in the command line