Adds minimax algorithm