win loss condition fix