fix to new move sorting

it has some bug (history gains faster than butterfly), but works better.
one of the bugs is that history doesn't know how to deal with negative
depth input.  the other - probably butterfly should be increased on
movegen and only then reverted on bad moves (right now not all  moves
get downgraded on beta cutoff). it requires a lot of tiny changes and
tons of testing. but it is the first time that 1.7 (with no lazy eval)
outperformed 1.6