Finished BreadthFirstSearch implementation in Behavior.java.