restructured Tile class for easier traversal