hangman idea in python