Removed debug code. Some fixes for hang condtion.
Fix bug drawing from empty deck.
Attempts to fix a hang in the program.
Clean up aafter abnormal exit.
Initial commit