moved grid shape-checking code into the anonymous namespace
moved grid shape-checking code into the anonymous namespace

tjakway/digital-ant-farm,tjakway/digital-ant-farm,tjakway/digital-ant-farm,tjakway/digital-ant-farm