Added a Polygon class that will be used to render obstacles.