a bunch of pseudocode for UCT, also node and tree types