now have breadthe first checking for totally connected board