detect_move function

Detect the primary move between two model codes