src/main/java/tsz/game/model/GameWindow.java
/**
	 * Move down all of the obstacle cars.
	 */
Move down all of the obstacle cars.
Move down all of the obstacle cars .
public void moveDownCars() {
		for(Car i : this.obstacleCars){
        	i.moveDown(i.getSpeed()*player.getPlayersCar().getSpeed());
        	this.obstacleCars.stream()
        	.filter(k -> k.getX() == i.getX() && i.getY() < k.getY() + 30 && k.getSpeed() < i.getSpeed())
        	.forEach(k -> k.setSpeed(i.getSpeed()));
        }
	}
public void moveDownCars ( ) { for ( Car i : this . obstacleCars ) { i . moveDown ( i . getSpeed ( ) * player . getPlayersCar ( ) . getSpeed ( ) ) ; this . obstacleCars . stream ( ) . filter ( k -> k . getX ( ) == i . getX ( ) && i . getY ( ) < k . getY ( ) + 30 && k . getSpeed ( ) < i . getSpeed ( ) ) . forEach ( k -> k . setSpeed ( i . getSpeed ( ) ) ) ; } }
Move down all of the obstacle cars.
Move down all of the obstacle cars .