corrected minimax iterative deepening
corrected loop condition for bishop and rook