working implementation of hangman
reset starting conditions when changing the hidden word