//Changed one line if (overlays.points[i].getName() == “Point2D”)
to
if (overlays.points[i].getName() != “Point2D”)