check to see if a player won