class FoundationPile {

	public boolean canMoveTo(Card pCard)
	{
		assert pCard != null;
		if( isEmpty() )
		{
			return pCard.getRank() == Rank.ACE;
		}
		else
		{
			return pCard.getSuit() == peek().getSuit() &&
					pCard.getRank().ordinal() ==
					peek().getRank().ordinal()+1;
		}
	}

}