That is an excellent snippet, thanks for the link. I thought I'd seen something about this issue lately -- it must have been your post!
It doesn't solve the "how many turns" issue, which is particularly annoying for, say, the gingerbread house, which has a maximum of infinite turns of...