beam searcher not wroking correctly
added comment to best first