Tilemap first-pass implementation