public void deleteRefereeClassFromList(RefereeClass r)
	{
		// set relevant position in refereeClassArray to null
		refereeClassArray[getPositionInRefereeClassArray(r.getRefereeName())] = null;
		
		// decrement number of elements in the array
		elementsInArray--;
		
		// create a new array of non-null values and
		// change pointer of refereeClassArray to new array
		int arraySize = 0;
		RefereeClass[] refereeClassArrayTemp = new RefereeClass[MAX_REFEREES];

		// add only non-null RefereeClass objects to temp array
		// and increment arraySize
		for (RefereeClass ref : refereeClassArray)
			if (ref != null)
			{
				refereeClassArrayTemp[arraySize] = ref;
				arraySize++;
			}

		// create a new RefereeClass array
		RefereeClass[] updatedrefereeClassArray = new RefereeClass[arraySize];
		
		// copy the temp array into the new array
		System.arraycopy(refereeClassArrayTemp, 0, updatedrefereeClassArray, 0, arraySize);
		
		// set array ordering by referee ID and sort
		RefereeClass.setWhichOrder("ID");
		Arrays.sort(updatedrefereeClassArray);
		
		// change pointer of refereeClassArray to the new array
		refereeClassArray = updatedrefereeClassArray;
	}