Implement proper rotation on graveyard and library piles.