private void collision(){
		Rectangle r1 = pika1.getBounds();
		Rectangle r2 = pikaBall.getBounds();
		Rectangle r4 = pika2.getBounds();
		Line2D.Double leftLine = new Line2D.Double(0, 600, 410, 600);
		Line2D.Double rightLine = new Line2D.Double(410, 600, 800, 600);
		Line2D.Double leftStickLine = new Line2D.Double(400, 375, 400, 600);
		Line2D.Double rightStickLine = new Line2D.Double(417, 375, 417, 600);
		Line2D.Double upStickLine = new Line2D.Double(400, 375, 416, 375);
		
		
		if(r1.intersects(r2)){   //pika1撞球
			float d = ((float)pikaBall.getX()+(float)pikaBall.getWidth()/2f)-((float)pika1.getX()+(float)pika1.getWidth()/2f);		
			pikaBall.hit(d, pika1.getPowHit(), 1);
		}
		else if(r4.intersects(r2)){   //pika2撞球
			float d = ((float)pikaBall.getX()+(float)pikaBall.getWidth()/2f)-((float)pika2.getX()+(float)pika2.getWidth()/2f);		
			pikaBall.hit(d, pika2.getPowHit(), 2);
		}
		if(r2.intersectsLine(upStickLine)){   //撞到柱子上面
			pikaBall.hitUpStick();
		}
		else if(r2.intersectsLine(rightStickLine) || r2.intersectsLine(leftStickLine)){   //撞到柱子左邊和右邊
			pikaBall.hitStick();
		}	
		
		if(r2.intersectsLine(leftLine) || r2.intersectsLine(rightLine)){   //球落地
			if(r2.intersectsLine(leftLine)){   //球落在左邊，2P贏
				record.plusCount2();
				roundWin = 2;
			}
			else if(r2.intersectsLine(rightLine)){   //球落在右邊，1P贏
				record.plusCount1();
				roundWin = 1;
			}
			timer.cancel();
			timer = new Timer();
			timer.scheduleAtFixedRate(new ScheduleTask(), 0, 60);
			
			timer3 = new Timer();
			timer3.schedule(new HideTask(), 700, 15);
			roundOver = true;
			pika1.ifStart = false;
			pika2.ifStart = false;
		}
	}