Old move determination algorithm in ported