fixed bug twice the number of cards drawn.
refactor.
update auto layout