WireHelper has a wonderful method returning ArrayList of connected sides