My main problem was the algorithm would get stuck generating a level, so removing retry wouldn't fix it...