trying bfs... failing miserably