implemented mcts. compiles but fails on choosing valid positions