refactoring deck reader class