Update hangman.js

Made searchbyindex accept only numbers, prevented forceevent if game is running.