replace dictionary array with hash
replace used letters array with hash