Cleaned up CGOL object properly in main.