Implement debug mode for Tilemap