Fixed animation of cards, got rid of extraneous code