public void paint(Graphics g) {
        Font helvetica = new Font("Helvetica", Font.BOLD, 18);
        g.setFont(helvetica);
        g.setColor(Color.WHITE);
        //draws the number of sitted people on the center of a table...
        //moves the text 10 units up to avoid being covered by the sitted fellas
        if (tipo == 1 || tipo == 2 || tipo == 4 || tipo == 5 || tipo == 6 || tipo == 7) {
            g.drawString(getValor() + "", getPosX() + getAncho(), getPosY() - 10);
        } else {
            g.setColor(Color.YELLOW);
            g.drawString(getValor() + "", getPosX() + getAncho(), getPosY() - 25);
        }
        g.setColor(Color.BLACK);
        g.drawImage(getImageIcon().getImage(), getPosX(), getPosY(), null);
        if (upgrade.getFuncion() != 0) {
            upgrade.paint(g, getPosX(), getPosY(), Mesa.this);
        }
    }