public void paint(Graphics g) {
		super.paintComponent(g);

		g.drawImage(backgroundPic, 0, 0, width, depth,  null);
		
		Graphics2D g2d = (Graphics2D) g;
		
		synchronized (ocean.getOceanObjects()) {
			
			if (ocean.getOceanObjects().size() > 0) {
			
			for (int i = 0; i < ocean.getOceanObjects().size(); i++){
				  OceanObject obj = ocean.getOceanObjects().get(i);
				  g2d.drawImage(obj.getIcon().getImage(), obj.getPosition()[0], obj.getPosition()[1], null);			
			  }
			}
		}
		  
	}