public void paint(Graphics g){
		
		g.drawImage(bg, 0, 0, this);   //draw background
		super.paint(g);
		Graphics2D g2D = (Graphics2D)g.create();
		
		if(pika1.getIfJump() == true){
			if(pika1.getPowHit() == true)
				g2D.drawImage(pika1.getImage4(), pika1.getX(), pika1.getY(), 100, 100, this);
			else
				g2D.drawImage(pika1.getImage3(), pika1.getX(), pika1.getY(), 100, 100, this);
		}
		else if(pika1.getIfPu() == true){
			g2D.drawImage(pika1.getImage2(), pika1.getX(), pika1.getY(), 100, 100, this);
		}
		else {
			g2D.drawImage(pika1.getImage(), pika1.getX(), pika1.getY(), 100, 100, this);
		}
		
		if(pika2.getIfJump() == true){
			if(pika2.getPowHit() == true)
				g2D.drawImage(pika2.getImage4(), pika2.getX(), pika2.getY(), 100, 100, this);
			else
				g2D.drawImage(pika2.getImage3(), pika2.getX(), pika2.getY(), 100, 100, this);
		}
		else if(pika2.getIfPu() == true){
			g2D.drawImage(pika2.getImage2(), pika2.getX(), pika2.getY(), 100, 100, this);
		}
		else{
			g2D.drawImage(pika2.getImage(), pika2.getX(), pika2.getY(), 100, 100, this);
		}
		
//		g2D.draw(leftLine);
//		g2D.draw(rightLine);
//		g2D.draw(leftStickLine);
//		g2D.draw(rightStickLine);
		
		g2D.drawImage(stick.getImage(), stick.getX(), stick.getY(), 17, 225, this);
		g2D.rotate(Math.toDegrees(pikaBall.getAngle()), pikaBall.getX()+pikaBall.getWidth()/2, pikaBall.getY()+pikaBall.getHeight()/2);
		g2D.drawImage(pikaBall.getImage(), pikaBall.getX(), pikaBall.getY(), this);		
		
		Toolkit.getDefaultToolkit().sync();
		g2D.dispose();   //close the g2D draw
		
		if(roundOver == true){
			g2D = (Graphics2D)g.create();
			Rectangle hideR = new Rectangle(0, 0, 800, 700);
			AlphaComposite comp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha);
			g2D.setComposite(comp);
			g2D.fill(hideR);
			
			Toolkit.getDefaultToolkit().sync();
			g2D.dispose();
		}
		
		g.dispose();
	}