public boolean moveForward()
    {
        if (currentCar != null && forward != null && forward.currentCar == null && ((light != null && light.isGreen()) || light == null)) {
            currentCar.setCurrentPosition(forward);
            forward.currentCar = currentCar;
            currentCar = null;
            return true;
        }
        else {
            return false;
        }
    }