Our problems seem to have been caused by a double call to 'wrap-grid-game'.