some more useful functions to tilemap