Properly connect linked pins
Properly connect linked pins

Connected pins form a circular linked list. When connecting multiple
pins, each pin "chain" must be unwrapped, by finding the head and tail
of the linked list, then the two are connected together. This should
also include checks in case they are already connected.

henkoberholzer/kgucpu