Task4: change wins function