fixed end of game identification