StopIteration was not caught and the program would crash if the dealer called for a hit and the value went past 21. caught the StopIteration and added a 'dealer busted' message.