winning logic and notifications