Eliminate global reference to TileEngine