initialize grid with solution