tilemanager re-created

tile code simplification WIP