achieve basic function for dispatching cards and shuffling cards