Revert "Update hangman.java"

This reverts commit 52548a606fc25a428b5d25d6d5744bb1acd34943.