def has_been_visited(name, joints):
    visited = False
    for joint in joints:
        if (name == joint.name):
            visited = True
            break
    return visited
def has_been_visited(name, joints):
    visited = False
    for joint in joints:
        if (name == joint.name):
            visited = True
            break
    return visited