improve of class game and try to debug the algorithm of compareword