def heuristic_cost_estimate(node, target) -> float:
    """Calculate the heuristic of th node
    :param node: node to test
    :param target: the final node
    :return: the heuristic between the node to test and the target
    """
    return abs(target.x - node.x) + abs(target.y - node.y)