added output script, minimax search, and a node class (to make a tree)