Code Reduction using Object Inheritance

Polygon Not Working. Need to Fix Line Bug.