fixed a bug where voronoi diagram had thick borders due to checking distance difference between points used to create the diagram rather than the distance to the border