initialize the grid system