Add the framework for rendering the cards graphically. Additionally, fix an error