private boolean withinBounds(int pointer, ArrayList<Rod> rodList) {
		int currentLength = 0;
		for(int i = 0; i < pointer; i++) {
			currentLength += rodList.get(i).getLength();
		}
		return currentLength <= totalLength && pointer < rodList.size();
	}