restructured Tile class a little