<ethod that iterates through all nodes and returs them to queue added
Queue array cleaned-up from unnecessary includes