import copy


def add_node_to_path(node, path):
    """
    Adds the name of the node to the copy of the list of strings inside the 
    safely copied version of the path. 
    Leave the other two items in path unchanged (total distance traveled and 
    total number of buildings).
    
    Parameters:
        path: list composed of [[list of strings], int, int]
            Represents the current path of nodes being traversed. Contains
            a list of node names, total distance traveled, and total
            number of buildings.
        node: Node 
            Representing a building being added to the path
            
    Returns:
        A safely copied version of path with the node name added to the end of 
        the first element.
    """
    # need a deepcopy so that the list inside of the the list 'path' is also copied
    new_path = copy.deepcopy(path)
    new_path[0].append(node.get_name())
    return new_path