Gives an error if entities aren't distinct.
Disabled the Change Direction button for errors.
Added validateEntities flag to selectively disable entity equality checks.