BACK TRACK DEPTH FINDER