private static int produceValue(ArrayList<Integer> values)
	{
		// Calculates the average value
		int average = getAverageValue(values);
		//System.out.println("Average: " + average);
		
		// Finds and removes additional 0:s
		// And recalculates the average value (if needed)
		if (removeZeros(values, average))
			average = getAverageValue(values);
		
		// Finds and removes too large values
		// And recalculates the average value (if needed)
		if (removeTooLargeValues(values, average))
			average = getAverageValue(values);
		
		// Finds the most usual value
		int mostusual = getMostUsualValue(values);
		//System.out.println("Most usual: " + mostusual);
		
		// Returns the most usual value, if applicable
		// Also, if average is within the mistake margin, returns the 
		// Average since it's more accurate
		if (mostusual != -1 && Math.abs(mostusual - average) > 5)
			return mostusual;
		
		// Recalculates the average value and returns it
		return average;
	}