impl: move card rendering to another file

Part of #52