added win and lose