Added some functionality to Tilemap class