Added a set grid function to the tilemap.