moved textured cube code into Cube3D class