def find_adjacent(left, line):
    """
    find the indices of the next set of adjacent 2048 numbers in the list

    Args:
        left: start index of the "left" value
        line:  the list of 2048 numbers

    Returns:
        left, right:  indices of the next adjacent numbers in the list
            if there are no more adjacent numbers, left will be
            len(line) - 1

    """

    # find the next non zero index for left
    while left < (len(line) - 1) and line[left] == 0:
        left += 1

    right = left + 1
    # find the next non zero index after left
    while right < len(line) and line[right] == 0:
        right += 1

    return left, right