created service to determine who wins