A simple terminal-based game of hangman