Separated randomized tree search into its own file; abstracted