Fixed path simplification when parent boxes are destroyed. Also fixed getting the point outside of all child boxes before pathfinding.