@Override
    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;
        
        for (int i = 0; i < pills.size(); i++) {
            pills.get(i).paintObj(g, this);
        }
        
        for (int j = 0; j < bullets.size(); j++) {
            bullets.get(j).paintObj(g, this);
        }

        for (int i = 0; i < robots.size(); i++) {
            if (robots.get(i) != null) {
                robots.get(i).paintObj(g, this);
            }
        }
       
        for (int i = 0; i < obstacles.size(); i++) {
            obstacles.get(i).paintObj(g, this);
        }
        
        for (int i = 0; i < expAnim.size(); i++) {
            if (expAnim.get(i) != null) {
                expAnim.get(i).Draw(g2d);
            }
        }
        
        for (int j = 0; j < ovnis.size(); j++) {
            ovnis.get(j).paintObj(g, this);
        }
        
        Toolkit.getDefaultToolkit().sync();
        g.dispose();
        
    }