fix memory error when solving a single puzzle and make # of branches more accurate.