added a new functionality to TileEngine