@Override
	/**
	 * @see IPlayer#endTrick(Pile, int)
	 * 
	 * Store the cards won in the previous trick in their respective piles. If the declarer won the trick,
	 * store the cards in the declarer's pile. If one of the defenders won the trick, store the cards
	 * in the defenders' pile. From here we can easily calculate who is winning, by looking at the cards
	 * in each pile. 
	 */
	public void endTrick(Pile cardsPlayed,int whoWonIndex)
	{
		Card c;
		for(int i=0;i<3;i++)
		{
			c=cardsPlayed.getCard(i);
			if(whoWonIndex==declarerIndex) declarerCardsWon.addCard(c);
			else defenderCardsWon.addCard(c);
		}
	}