Added palyer_wins function