recursive loop on assigning winner