Move to best-first rather than depth first