Algo fix when no move at depth n

need testing...