Initialize terrain as a grid.