Logic change to keep any node as first node
JIRA -> http://tintin.cs.indiana.edu:8091/browse/PSU-116