Measuring the scatter in the mass richness relation of galaxy clusters for the dark energy survey using the correlation function