Add basic hangman algorithm.