Added logic to only allow wires to be drawn when connecting logic elements left to right.