Monte-Carlo Tree Search Implementation for general purpose.