Lowered the boundries of the obstacles, fuel and car, also made the car to draw ON TOP of them
import javax.swing.*;
import java.awt.*;

public class HoleObstacle{

	int x, y;
	//Bebbo: make holes repeat;
	private int startY;

	public HoleObstacle(int x, int y) {
		this.x = x;
		this.y = y;

		//Bebbo: make holes repeat
		startY = y;
	}

	public void update() {
		//y += 1; //edited by vlado - continues move
		//Bebbo: make holes repeat
		checkOffScreen();
	}

	public void draw(Graphics2D g2d) {
		g2d.drawImage(getHoleObstacleImg(), x, y, null);
		//g2d.draw(getBounds());
	}

	public Image getHoleObstacleImg() {

		ImageIcon ic = new ImageIcon("media/holeobstacle.png");
		return ic.getImage();
	}

	public Rectangle getBounds() {
		return new Rectangle(x, y, 15, 15); //getHoleObstacleImg().SCALE_DEFAULT,getHoleObstacleImg().SCALE_DEFAULT);
        //VELIO: 15, 15 намаля малко размера на дупката, който отчита сблъсък. Иначе при по-трудни нива става прекалено трудно да се избегне удар.
    }

	//Bebbo: make holes repeat;
    public void checkOffScreen(){

		if (y >= 900) {
			y = startY;
		}
	}

}
Merge branch 'master' of https://github.com/stanislavBozhanov/SoftUniTeamwork

ines starting with '#' will be ignored, and an empty message aborts