Pointer fixes in grid class