changed the final conditions so that we exit only when 10000 iterations reached for an experiment