// if it comes from a "Hand" zone to the "Talon" zone
if (action.getZoneFrom().getName().equals("Hand")
&& action.getZoneTo().getName().equals("Talon")) {
ArrayList<Card> cards = new ArrayList<Card>();
cards.addAll(action.getCards());
ZonePile talonZone = ((UnoGame) action.getGame())
.getTalon();
if (((CardUno) cards.get(0)).getColor() == ((CardUno) talonZone
.getTopCard()).getActiveColor()) {
return true;
}
}
return false;