public String getNextSpecialInventory(String []list, String name, boolean rotateDirection){
		String nextInvName = null;
		for (int i = 0; i < list.length; i++) {
			if (list[i].equals(name)) {
				if (rotateDirection) {
					if (i + 1 < list.length) {
						nextInvName = list[i + 1];
					} else {
						nextInvName = list[0];
					}
				} else {
					if (i - 1 >= 0) {
						nextInvName = list[i - 1];
					} else {
						nextInvName = list[list.length-1];
					}
				}
				break;
			}
		}
		return (nextInvName == null) ? list[0] : nextInvName;
	}