Adding SWMGrid class, encapsulating array of tiles.