change checkgameend