Adds tree.lua, which implements a tree and start of minimax algorithm.