public void tapCard(String ID, boolean tapped) {
        for (Object e : table.getComponents()) {
            if ((e.getClass().equals(TCard.class)
                    || e.getClass().equals(Token.class))
                    &&((TCard) e).getID().equals(ID)) {
                if (tapped) {
                    ((TCard) e).tap();
                } else {
                    ((TCard) e).untap();
                }
                break;
            }
        }
    }