separated out transition animation logic to make it more modular
implemented flipping transitions in shuffledeck