protected void addConnection(int x, int y, boolean input, String name)
	{
		for (Component c : getComponents())
			if (c.getName().equals(name)) throw new InvalidParameterException("Connection already exists with name: " + name);
		
		Connection c = new Connection(name, input);
		c.setBounds(x * Logicator.gridSize, y * Logicator.gridSize, Logicator.gridSize, Logicator.gridSize);
		add(c);
	}