I believe both problems are due to a problem in move_pieces_ninsns: Ooops. Sorry; I missed that case. I got the one in move_by_pieces and later in clear_storage. I'll fix that momentarily.