migrated hangman test to mocha framework