added the credit update functionality. Fixed the double down mechanism. Added player history bookkeeping