Adds isOnTop() and getCardOnTop() methods to Pile class.