Minimax algorithm added.