Added a controller for a breadth first search