Adding edges to tiles