finished MCTS framework in v4, only single player, possibly buggy