maintain a list of available nodes
finally select nodes randomly
fix, iterate over copy of list
handle unsolvable case
cosmetic debug output
Merge pull request #1 from rudimeier/master

select nodes randomly