Create Grid and Initiate value

I create the grid size n x n and initiate value of grid which 0
represent empty tree, 1 represent tree, and 2 represent burning tree.