Command line hangman game with strategy