public void blackTurn(int sx, int sy, int ex, int ey) { 
        int piece = board.getPiece(sx, sy);        
        board.blackTurn(sx, sy, ex, ey);
        
        if (board.getMoveB()) { 
            setInfo(0);
            turns++;
            
            if (cm.canAttackKing(board.getBoard(), piece, ex, ey)) {
                setInfo(1);
                cm.addSquares();
                
                if (!cm.canKingMove() && !cm.canTakeDownAttacker(ex, ey)) {
                    setInfo(3);
                }
            }            
        }  
        
        if (board.getWhite(12) == 99) {
            setInfo(3);
        }         
    }