Revert "Update hangman.java"

This reverts commit b8e1fcde3b2786452f3f04cf0caca463f5d04aac.