Fixed a bug in Cgol which read from values outside the bounds of the array