fixed depth limited search. implemented bidirectional search