Updated syntax and fixed minor bug

Small bug in exitCondition function of path finding. Exit condition was
calling "bo.box" when it should have been calling "bo.children"