Hangman command line game in Python