Check for end game