added setupGrid() method to map class

use it to reset the grid