added winning logic