functions for drawing the tile map