fix main function so that user and computer can play the game in turn