bestMove fixed

the only thing left to do is to fix when we put the opponent into
check/checkmate