Breadth first searching the solution space is a really good way to code with AI imo. You get better abstractions you can take away as well.