Added Tile implementation and tests.