Added polygonal drawing funtionality, so each time the user adds a vertex, it redraws the vertices in a polygonal arrangement.