public void paintComponent(Graphics g)
		{
			if(flag)
			{
				tarx=(int)(500+500*Math.random());
				tary=(int)(10+500*Math.random());
				flag=false;
			}
			g.setColor(Color.RED);
			if(tag==1)
			{
				g.fillOval(x-10,y-10,20,20);
				g.setColor(Color.GREEN);
				g.drawOval(x-10,y-10,20,20);
			}
			g.setColor(Color.RED);
			g.fillOval(tarx-50,tary-50,100,100);
			g.setColor(Color.BLUE);
			g.drawLine(0,500,1200,500);
			g.setColor(new Color(40,60,0));
			 
			g.fillRect(50-motion,466,40,30);
			g.fillOval(50-motion ,452,40,40);
			g.fillArc(60-motion,466,60,60,0,90);
			g.fillArc(20-motion,466,60,60,90,90);
			g.fillOval(28-motion,472,28,28);
			g.fillOval(82-motion,472,28,28);
			g.setColor(Color.RED);
			g.setFont(new Font("Italic", Font.BOLD, 40));
    		g.drawString("SCORE : "+score,500, 40);
    		if(((tarx-x)*(tarx-x)+(tary-y)*(tary-y))<=50*50)
    		{
    			g.setColor(new Color(0,200,250));
    			g.fillOval(tarx-50,tary-50,100,100);
    			flag=true;
    			score+=5;
    			tag=0; 
    			gv=0;
    			x=(int)(65+80*Math.cos(angle1));
				y=(int)(457-80*Math.sin(angle1));
    		}	
			Graphics2D g2d = (Graphics2D)g;
    		Rectangle rect1 = new Rectangle(100-motion, 100, 100, 20);
    		g2d.setColor(Color.WHITE);
    		g2d.translate(65-motion,462);
    		g2d.rotate(Math.toRadians(-angle));
    		g.setColor(new Color(40,60,0));
    		g2d.fillRect(0-motion,-5,80,10);
    		going();
		}