public void buyer(List<String> itemsToBuy) {

		int itemsSeparate = 0;
		List<Integer> itemListSeparate = new LinkedList<>();

		boolean items[] = new boolean[mapOfItems.size()];
		for (String name : itemsToBuy) {
			itemsSeparate += mapOfItems.get(name).getValue();
			itemListSeparate.add(mapOfItems.get(name).getItemNumber());

			for (Entry<String, Item> o : mapOfItems.entrySet()) {
					if (o.getValue().contains(name)==false) {
						// true means does not have the value
						items[o.getValue().getItemNumber() - 1] = true;
					}
			}
		}

		int itemTogetherNumber = -1;
		int together = 999999;
		for (Entry<String, Item> o : mapOfItems.entrySet()) {
			
			if (items[o.getValue().getItemNumber()-1] == false) {

				if (o.getValue().getValue() < together) {
					together = o.getValue().getValue();
					itemTogetherNumber = o.getValue().getItemNumber();
				}

			}
		}

		if (itemsSeparate < together) {
			for (Integer i : itemListSeparate)
				System.out.print(i + ",");
		} else {

			System.out.println(itemTogetherNumber);
		}

	}