merging updated card dealing functionality