Use CyclicBarrier to simulate the horse race.