A basic hangman gave in Java with no GUI