fixed comment and variable name in private method getSwappableNodesInDirection