Detecting input as High when not actually active. Arduino uno r3

From the draw you have all the i/ps going to +5V
Use internal pull ups on the i/ps.
When you unplug a wire, plug that wire into a grounded bus bar (connected to 0 Volts).