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

        Graphics2D g2d = (Graphics2D)g;
        g2d.drawImage(craft.getImage(), craft.getX(), craft.getY(), this);
       
        ArrayList b = craft.getBullets();

        for (int i = 0; i < b.size(); i++ ) {
            PlayerBullet m = (PlayerBullet) b.get(i);
            g2d.drawImage(m.getImage(), m.getX(), m.getY(), this);
        }
        
        for (int i = 0; i < invaders.size(); i++){
        	Invaders inv = (Invaders)invaders.get(i);
        	if (inv.isVisible()){
        		g2d.drawImage(inv.getImage(), inv.getX(), inv.getY(), this);
        	}
        
        }
        Toolkit.getDefaultToolkit().sync();
        g.dispose();
    }