added win and lose alerts