win condition fix