Modified the index calculation for the sphere. Moved the createSphereBuffer and createGridBuffer outside the Mesh class.