public static void SwapWireEnd(Wire wire, Pin end, Pin pin)
 {
     end.Wires.Remove(wire);
     pin.Wires.Add(wire);
     wire.End = pin;
     wire.Update(0f, 0f);
 }
 public static void SwapWireStart(Wire wire, Pin start, Pin pin)
 {
     start.Wires.Remove(wire);
     pin.Wires.Add(wire);
     wire.Start = pin;
     wire.Update(0f, 0f);
 }