uct_genmoves(): call prepare_move() earlier to avoid dangling node refs in