Fixed lights accumalating in array when using a global instance of the graphics3D class