refactor code
added model for card game for logic