added infrastructure for the functional tilemap