Spinning cubes in OpenGL