public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		if(count<7 && count>0)
		{

			g.setColor(Color.YELLOW);
			g.fillRect(1,200,200,20);
			g.fillRect(250,200,200,20);
			g.fillRect(500,200,200,20);
			g.fillRect(750,200,200,20);
			g.fillRect(1,450,200,20);
			g.fillRect(250,450,200,20);
			g.fillRect(500,450,200,20);
			g.fillRect(750,450,200,20);
			g.setColor(Color.BLACK);
			g.setFont(new Font("Serif", Font.BOLD, 70));
			g.drawString("Level  "+ count, 450,350);
			g.drawImage(run[picnum],x,y,this);
			g.drawImage(run[1],car1x,100,this);
			g.drawImage(run[4],car4x,255,this);
			g.drawImage(run[3],car3x,355,this);
			g.drawImage(run[2],car2x,500,this);
		}
		if(count>6)
		{
			g.setColor(Color.BLACK);
			g.fillRect(0,0,1000,800);
			g.setColor(Color.WHITE);
			g.setFont(new Font("Serif", Font.BOLD, 100));
			g.drawString("WINNER!",300,350);
			g.setFont(new Font("Serif", Font.BOLD, 40));
			g.drawString("Press any Spacebar to Continue",300,450);
			if(space==true)
			{
				count=0;
				space=false;
				car1dx = 7;
				car2dx = 4;
				car3dx = 6;
				car4dx = 5;
				x=500;
				y=632;


			}
		}
		if(count==0)
		{
			g.setColor(Color.BLACK);
			g.fillRect(0,0,1000,800);
			g.setColor(Color.WHITE);
			g.setFont(new Font("Serif", Font.BOLD, 40));
			g.drawImage(run[7],225,415,this);
			g.drawImage(run[7],725,415,this);
			g.drawString("Press Spacebar to Start",300,450);
			if(space==true)
			{
				count=1;
				space=false;
			}


		}

	}