started danny-search algorithm