Moved cube rendering in to the model class.