Move tile-drawing into drawTile function