Disallowed creating an edge from a point to the same point. Also disabled doubling back with an edge.
Added support for multiple polygons