Added debug grid print