I feel you. We got stuck with same problem. ... so we changed retry to quit lol
My main problem was the algorithm would get stuck generating a level, so removing retry wouldn't fix it...