Refactor cards into back and front