Added some code to handle KeyError and AttributeError exceptions wrt
adding or moving cards that may not have been created correctly or
may have been removed from scope.