This commit begins the construction of the minimax algorithm