Updates maze grid.