refactors codes for planning poker card.