Update grid.h