def edge_check(p,start,end):
    """ This function checks if the coordinates of a point lies at the edge of a grid. It returns a list of boolean values."""
    check=[]
    
    for i in p:
        check.append((i-end)==0 or (i-start)==0)
    return check