Added check to ensure any new point added is not in close porixmity to an already existing line