added a depth limit, figured out the consequential bug that you need to reset the memoization board because of the decision point after hitting the depth limit.