change in winning logic