Fixed Bug in Breath_first_search