fixed end game condition