added code to move a number of grids

added code to move a number of grids