Implemented breadth first search for scene tree traversion