public void removeCards(int player) {
        for (Component c : table.getComponents()) {
            if ((c.getClass().equals(TCard.class) || c.getClass().equals(Token.class))
                    && ((TCard) c).getID().charAt(0) == player + 'A') {
                table.remove(c);
            }
        }
        table.repaint();
    }