refactoring animateDeck