breadth first search works! whoooo!