Finally, the duplicate connection checker for the Circuit class and its "add connection" method works! ^_^