implement getTopCard() and takeTopCard()