def switch_turn(match, team):
    """
    Change the team who can pick.

    :param match: Match object
    :param team: The team who is currently picking
    :return: Next team to pick
    """
    # Toggle turn
    team.captain.is_turn = False

    # Get the other team
    other = match.teams[team.id - 1]
    other.captain.is_turn = True
    return other