Modified hangmanController to fix minor error