def get_meld_set(leaf_node):
    """ Follows a path up to the root, and gets an array of melds """
    arr = []
    node = leaf_node
    while node:
        arr.append(node.meld)
        node = node.parent
    return arr