Fix StackOverflow when chopping big trees.
No need to make a recursion vertically since we are already moving by "layers" with the while loop.