the new version of hangMan with fixed bug