Implemented pset4a (wordgame)