function for tie breaker winner