2nd version of win condition check