Some cleanup in wires, and test with all five directions
Made tile-directions more general