Made CardFactory abstract and gave it an abstract method for creating cards.