refactored TileContainer class (ref #105)