Simple minimax algorithm added