Creates the grid