Make the Polygon constructor and setVertices function take a variable amount of arguments.