Added code for TileContainer and tests