fix sortgame.cpp