private void createInverter(String in, String out)
	{
		Inverter inverter = new Inverter();

		// Connect the input
		// Check if the in wire is an input
		if (stringToInput.containsKey(in))
		{
			Wire inWire = new Wire();
			stringToInput.get(in).connectOutput(inWire);
			inverter.connectInput(inWire);
		}
		// Check if the in wire is an output
		else if (stringToOutput.containsKey(in))
		{
			Wire inWire = new Wire();
			stringToOutput.get(in).connectOutput(inWire);
			inverter.connectInput(inWire);
		}
		// Check if the in wire is just a wire already known to the circuit
		else if (stringToWire.containsKey(in))
			inverter.connectInput(stringToWire.get(in));
		else
			MainFrame.showError("Error, the wire " + in
					+ " isn't in the circuit");

		// Connect the output
		// Check if the in wire is an output
		if (stringToOutput.containsKey(out))
		{
			Wire outWire = new Wire();
			stringToOutput.get(out).connectInput(outWire);
			inverter.connectOutput(outWire);
		}
		// Check if the in wire is just a wire already known to the circuit
		else if (stringToWire.containsKey(out))
			inverter.connectOutput(stringToWire.get(out));
		else
			MainFrame.showError("Error, the wire " + out
					+ " isn't in the circuit");

		gates.add(inverter);
	}