BackNode::getNextSteps doesnt create a child if it is equal to the previous state

Minor changes to improve the speed