Fixed Culling

I will rewrite the basic 3d shape functions tomorrow.