public void run() {
        Random ran = new Random();
        while (ancho < maxAncho && alto < maxAlto) {
            try {
                if (mascarillaAplicada == false) {
                    Thread.sleep(500 + ran.nextInt(3000));
                    ancho++;
                    alto++;
                    gs.repaint();
                } else {
                    break;
                }

            } catch (InterruptedException ex) {
                Logger.getLogger(Barrillo.class.getName()).log(Level.SEVERE, null, ex);
            }

        }

        try {
            Thread.sleep(5000);

            while (ancho > 0 && alto > 0) {
                Thread.sleep(500 + ran.nextInt(3000));
                ancho--;
                alto--;
                gs.repaint();
            }
            gs.eliminarBarrillo(this);

        } catch (InterruptedException ex) {
            Logger.getLogger(Barrillo.class.getName()).log(Level.SEVERE, null, ex);
        }

    }