public void update(Graphics g){
        if(firstTime){
            Dimension dim = getSize();
            int w = dim.width;
            int h = dim.height;
            this.bufferImg = (BufferedImage)createImage(w, h);
            this.bufferGraphics = this.bufferImg.createGraphics();
            firstTime = false;
        }
        
       
        //if(clients==null){
        if(look != 0){
                ArrayList<Client> looc = clients.getLookingClients();
                for(Client c : looc){
                    bufferGraphics.drawImage(c.getClientImage(), xl+=15, yl, 10, 15, this);
                    if(xl > 30){
                        xl = 0;
                        yl +=15;
                    }
                }
                xl=0;
                yl=0;
            }else{
            bufferGraphics.clearRect(0, 0, 100, 150);
        }
            if(seat != 0){
                bufferGraphics.drawImage(this.background, 0, 0, this.getSize().width,this.getSize().height, null);
                ArrayList<Client> sit = clients.getSittingClients();
                
                for(Client c : sit){
                    
                    bufferGraphics.drawImage(c.getClientImage(), x+=16, y, 10, 15, this);
                    if(x > 420){
                        x = 27;
                        y += 15;
                    }
                }
                 x=27; y = 25;
            } else{
                bufferGraphics.drawImage(this.background, 0, 0, this.getSize().width,this.getSize().height, null);
            }
            
       // }
        //bufferGraphics.drawImage(this.arco.img,this.arco.getX(),this.arco.getY(),this);
        g.drawImage(this.bufferImg,0,0,this);
        repaint();
    }