breadth first works and tested