fixed end-game test