a game of hangman in python with a word generated randomly each time