Remove side effects from deepCoded

use a copy of the dictionary to leave the original intact.