def add_to_open(open, neighbor):
    """checks if a neighbor should be added to open list"""
    for node in open:
        if neighbor == node and neighbor.f >= node.f:
            return False
    return True