complete breadth first search for singleplayer games