add dealing card validation, fix bugs