Update grid.hh