Write a program that lets the user right-click to add points to a polygon. When the user right-clicks, finalize the polygon and determine whether the clicked point lies inside the polygon. If the user right-clicks again, determine whether the new point lies within the existing polygon. If the user left-clicks after the polygon has been finalized, start a new polygon.