[Hangman] Fixed problem with counting errors and sending events on setState, setShowErrorsMode and setWorkMode