public boolean checkHit(Rectangle2D test,BufferedImage hits ){
			for(int i=(int) test.getX();i<=test.getX()+test.getWidth();i++){
				for(int j=(int) test.getY();j<test.getY()+test.getHeight();j++){
					if(hits.getRGB(i,j)!=0x00){
						return true;
					}
				}
			}
		return false;
	}