Changed 2d grid to 1d grid with 1d blocks