A solver for my hangman game