public void draw(Graphics2D g2d) {
		for(int i = 0; i < 256; i ++)
			for(int j = 0; j < 256; j ++){
				if(hull[i][j] != null) {
					
					double[] transformed = transform(i*32,j*32);
					AffineTransform trans = AffineTransform.getTranslateInstance(transformed[0]+x, transformed[1]+y);
					trans.concatenate(AffineTransform.getRotateInstance(Math.toRadians(rot)));
					g2d.drawImage(ResourceContainer.images.get(hull[i][j].getImagePath()), trans,null);
					String img = "";
					if(hull[i][j].health > 75)
						img = "";
					else if (hull[i][j].health > 50)
						img =  "/img/hull/damage_1.png";
					else if(hull[i][j].health > 25)
						img =  "/img/hull/damage_2.png";
					else 
						img =  "/img/hull/damage_3.png";
					g2d.drawImage(ResourceContainer.images.get(img), trans,null);
				}
			}
		for(int i = 0; i < objects.length; i ++) {
			if(objects[i] != null)
			objects[i].draw(g2d);
		}
		double res[] = this.realtransform(massX, massY);
		g2d.fillRect((int)res[0], (int)res[1], 10, 10);
	}