update to last best move

As i marked on issue 1.
The C version react differently on X sequence (9 7) than the Javascript Version.