public void addRefereeClassToList(RefereeClass r)
	{
		// if there are already 12 elements in the array
		// throw an exception
		if (elementsInArray >= MAX_REFEREES)
			throw new StringIndexOutOfBoundsException();
		else // otherwise add RefereeClass to the refereeClassArray
		{
			RefereeClass[] updatedrefereeClassArray = new RefereeClass[elementsInArray + 1];
			System.arraycopy(refereeClassArray, 0, updatedrefereeClassArray, 0, elementsInArray);
			
			refereeClassArray = updatedrefereeClassArray;
			
			refereeClassArray[elementsInArray] = r;
			
			RefereeClass.setWhichOrder("ID");
			Arrays.sort(refereeClassArray);
			
			elementsInArray++;
		}
	}