Refactored dealForTable to deal.