Added main() method to Tile.