double y1 = (double) tileYMap.get(conn.startTile)*tileSize + (conn.startWire*tileSize)/enumSize;
double x2 = (double) tileXMap.get(conn.endTile)*tileSize + (conn.endWire%tileSize);
double y2 = (double) tileYMap.get(conn.endTile)*tileSize + (conn.endWire*tileSize)/enumSize;
path.moveTo(x1, y1);
path.lineTo(x2, y2);
}
PathItem item = new PathItem(path, pd);
item.setBrush(QBrush.NoBrush);
item.setPen(wirePen);
item.setAcceptHoverEvents(true);