complete win logic using alerts.