Cube drawn in 3D space using OpenGL