switching from recursive region filling to a while loop that calls cell fun. way faster, and less dangerous for hitting the recursion limit.