add condition for winning