Removed CWall class and added constructors to CPolygon to create rectangle polygons. Moved duplicate code from similar constructors into private functions.