pass stockfish state to C++ strategies, other small fixes