def get_manhattan_distance(node):
    """Function to calculate the manhattan distance for a
    particular configuration

    Parameters
    ----------
    node : [list]
        [list to check for the heuristics]

    Return
    ------
    [int]
        [returns the heuristic distance for a particular node]
    """
    h_score = 0
    node = list(node)
    for i in range(9):
        h_score += abs( node[i]/3 - (i%3) ) + abs( node[i] % 3 - (i/3) )

    return h_score