public static void printSolution(Map<String, String> m, CircuitProblem cp)
	{
		if (m ==null) {return;}
		
		Map<String,Set<Integer>> all = new HashMap<String,Set<Integer>>();
		Map<String, String> r = new HashMap<String, String>();
		
		for (String k : m.keySet())
		{
			r.put(m.get(k), k);
		}
		
		for (String loc : m.values())
		{
			int l = Integer.parseInt(loc);
			Rect i = cp.compList.get(names.indexOf(r.get(loc)));
			all.put(r.get(loc), coordSet(l, cp.width, i));
		}
		
		System.out.println();
		boolean print = false;
		for (int y = 0; y < cp.height; y++)
		{
			for (int x = 0; x < cp.width; x++)
			{
				for (String var : all.keySet())
				{
					if (all.get(var).contains(new Rect(x, y).toInt(cp.width)))
					{
						System.out.print(var);
						print = true;
					}
				}
				if (print == false)
					System.out.print(".");
				print = false;
			}
			System.out.println();
		}
		System.out.println();

	}