public void setCarPositions(ArrayList<CarPosition> carPositions) {
        allCars2.clear();
        for (CarPosition carPosition : carPositions) {
            CarInfo carInfoOld = null;
            for (CarInfo car : allCars) {
                if (car.color != null && car.color.equals(carPosition.color)) {
                    carInfoOld = car;
                }
            }
            CarInfo newCarInfo = obtainCarInfo(carPosition.name, carPosition.color, carInfoOld, carPosition);
            allCars2.add(newCarInfo);
            if (carInfoOld != null) {
                recycledCarInfos.add(carInfoOld);
            }
        }
        ArrayList<CarInfo> t = allCars;
        allCars = allCars2;
        allCars2 = t;
        if (turboTicksLeft > 0) {
            turboTicksLeft--;
            if (turboTicksLeft == 0) {
                System.out.println("set turbo factor to 1 because no more turboTicks left");
                turboFactor = 1;
            }
        }
        if (turboCautionTicksLeft > 0) {
            turboCautionTicksLeft--;
        }
    }