Check for win condition