Turns out the code of put() had been modified ibcorrectly, but the bug was masked in all but a few cases, noe of which would be encountered in normal gameplay. A test to ensure this bug does noit recur has been added.