added ability to only use heuristic for certain level of tree depth (unfinished)