removed compile shader function
Added Polygon and generalised shape creation