code: private void moveHorses(Benchmark[] b, int row, double[] totalTimes) {
      if (!useTrack) return;
      double winnerTime = Double.MAX_VALUE;
      for (double d : totalTimes) {
        winnerTime = Math.min(winnerTime, d);
      }
      double winnerPos = row * (double) trackWidth / (double) ds.length;
      for (int i = 0; i < b.length; i++) {
        GQuery g = $("#" + b[i].getId() + "horse");
        double pos =   winnerPos * winnerTime / totalTimes[i];
        g.css("left", (int)pos + "px");
      }
    }
docs: Update horse possition.
  Note that the calculated position is relative with the faster horse,
  so a horse could move back.