Conditional and loop in find_winner