fixed tile class and tilemanager