Set stable race duration

Update the stepsize depending on the number of horses so all races take about
the same amount of time