rewriting an IF's condition
fixed bug when connecting multiple lines to the same button
fixed bug that permitted connection between the input and output buttons of the same box