fixed find_winner function