function for hash built function in WordGame.cpp 
Code Cleaning