Added winning logic