Added getNodesToSwap implementation

Collects all nodes from numberOfCaptures.