implement card view, draw card, and count flap