Minimax implementation completed